package com.fishbone.mybatisplus.generator;

import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.util.CollectionUtils;
import org.springframework.util.MultiValueMap;

/**
 * @ClassName GeneratorAutoConfigurationImportSeletor
 * @Author huyaxi
 * @DATE 2020/4/26 10:11
 */
@Slf4j
public class AutoConfigurationImportSelector implements ImportSelector {

    @SneakyThrows
    @Override
    public String[] selectImports(AnnotationMetadata metadata) {
        log.info("****** Starting Mybatis Plus Generator AutoConfiguration ******");
        return new String[]{MybatisPlusGeneratorConfiguration.class.getName()};
    }
}
